﻿<Window x:Class="Collaboration_System.Autorization"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:materialDesing ="http://materialdesigninxaml.net/winfx/xaml/themes"
        mc:Ignorable="d"
        Title="Autorization" Height="645" Width="875" WindowStyle="None" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded" AllowsTransparency="True" ResizeMode="NoResize" FontSize="18" FontFamily="{DynamicResource MaterialDesignFont}" Background="Transparent">
    <materialDesing:Card UniformCornerRadius="15" Background="{DynamicResource MaterialDesignPaper}" materialDesing:ShadowAssist.ShadowAnimationDuration="4">
        <Grid Margin="20">
            <Grid.Effect>
                <DropShadowEffect BlurRadius="30" ShadowDepth="1" Opacity="0.4"/>
            </Grid.Effect>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="1.22"/>
            </Grid.ColumnDefinitions>
            <!-- Левая секция -->
            <Border Background="#00c0ff" CornerRadius="10 0 0 10" ClipToBounds="True" Margin="0,0,506,0">
                <Border.Clip>
                    <RectangleGeometry Rect="0,0,400,605" RadiusX="10" />
                </Border.Clip>
                <Grid>
                    <!-- Круг/логотип -->
                    <Ellipse Width="500" Height="500" VerticalAlignment="Bottom" Fill="#FF63D8FF" Margin="50 0 0 -200" Opacity="0.6"/>
                    <Ellipse Width="300" Height="300" VerticalAlignment="Bottom" Fill="#FF63D8FF" Margin="-450 0 0 30" Opacity="0.3"/>
                    <Ellipse Width="400" Height="400" VerticalAlignment="Bottom" Fill="#FF63D8FF" Margin="-320 0 0 -120" Opacity="0.3"/>
                    <Ellipse Width="250" Height="250" VerticalAlignment="Bottom" Fill="#FF63D8FF" Margin="-380 0 0 -120"/>
                    <Ellipse Width="400" Height="400" VerticalAlignment="Bottom" Fill="#FF63D8FF" Margin="280 0 0 -70" Opacity="0.8"/>

                    <!-- Заглавие -->
                    <StackPanel Margin="0 120 0 0" VerticalAlignment="Top">
                        <TextBlock FontSize="46" FontWeight="Light" Text="Авторизация" Foreground="#FF080808" TextAlignment="Center" FontFamily="Corbel Light"/>
                        <TextBlock FontWeight="Light" FontSize="16" Foreground="#FF080808" TextAlignment="Center" Text="авторизуйтесь для входа в приложение" Margin="0 15 0 3" FontFamily="Corbel Light"/>
                    </StackPanel>
                </Grid>
            </Border>
            <!-- Правая секця -->
            <Border Background="#ffffff" CornerRadius="0 10 10 0 " MouseDown="Border_MouseDown" Margin="328,0,1,0" RenderTransformOrigin="0.5,0.5" Grid.ColumnSpan="2">
                <Border.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Border.RenderTransform>
                <Grid>
                    <TextBlock FontSize="46" Text="Collaboration System" Foreground="#FF080808" TextAlignment="Center" FontFamily="Corbel Light" Margin="0,49,0,49" FontWeight="Bold"/>
                    <!-- Закрытие -->
                    <materialDesing:PackIcon Kind="Close" Width="27" Height="26" Opacity="0.3" RenderTransformOrigin="0.925,0" Margin="469,10,0,0" x:Name="ClouseButton" MouseDown="ClouseButton_MouseDown"/>
                    <!-- Сворачиване -->
                    <StackPanel VerticalAlignment="Center" Margin="75 0">
                        <TextBox x:Name="Login" Style="{StaticResource MaterialDesignFloatingHintTextBox}" VerticalScrollBarVisibility="Visible" materialDesing:HintAssist.Hint="Логин" materialDesing:HintAssist.FloatingOffset="0 -20" BorderBrush="#FFA9DDFF" BorderThickness="0 0 0 1.5" />
                        <PasswordBox x:Name="Password" Style="{StaticResource MaterialDesignFloatingHintPasswordBox}" materialDesing:HintAssist.Hint="Пароль" materialDesing:HintAssist.FloatingOffset="0 -20" BorderBrush="#FFA9DDFF" BorderThickness="0 0 0 1.5" />
                        <StackPanel Orientation="Horizontal" Height="77">
                            <Button x:Name="SingUp" Content="Войти" Background="#FF11B8EF" BorderBrush="#FF00C0FF" FontSize="18" Width="120" Height="45" materialDesing:ButtonAssist.CornerRadius="22" Click="SingUp_Click"/>
                            <Button x:Name="SingIn" Content="Зарегистрироваться" Background="#FF47D1FF" BorderBrush="#FF00C0FF" FontSize="18" Width="230" Height="45" materialDesing:ButtonAssist.CornerRadius="22" Margin=" 5 0 0 0" Click="SingIn_Click"/>
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </Border>
            <Image Source="Source/Lanver.png" Margin="31,437,568,-40" />
        </Grid>
    </materialDesing:Card>
</Window>
